/**
 * 
 */
package com.ruyipu.forum.interfaces;

import java.io.IOException;
import java.io.UnsupportedEncodingException;

import org.apache.http.client.ClientProtocolException;
import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;

/**
 * @author donald
 * 
 */
public interface IUserModel {
	public JSONObject login(Context context, String userName, String password)
			throws UnsupportedEncodingException, ClientProtocolException,
			IOException, JSONException;;

	public JSONObject register(Context context, String userName, String email,
			String password, String gender)
			throws UnsupportedEncodingException, ClientProtocolException,
			IOException, JSONException;;

	public JSONObject getUserProfile(Context context, int userId)
			throws UnsupportedEncodingException, ClientProtocolException,
			IOException, JSONException;;

}
